package com.ym.medical.service;

import com.github.pagehelper.PageInfo;
import com.ym.core.utils.tkmybatis.IBaseSV;
import com.ym.medical.domain.entity.UserCollectionEntity;
import com.ym.medical.domain.param.AddressListParam;
import com.ym.medical.domain.vo.PCMyDoctorVo;
import com.ym.medical.enums.CollectLableTypeEnum;

/**
 * 收藏有问诊记录，药品，器械，文章Service接口
 *
 * @author ym
 * @date 2020-09-04
 */
public interface IUserCollectionSV extends IBaseSV<UserCollectionEntity> {

	/**
	 * 查询是否关注医生
	 * @param busId 业务相关ID
	 * @param currId 用户ID
	 * @return
	 */
	long selectAttention(Long busId, Long currId, CollectLableTypeEnum type);
	/**
	 * 收藏的话题
	 * @param listModel
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	PageInfo<PCMyDoctorVo> pcCollectionTopic(AddressListParam listModel, int pageNo, int limit);
	/**
	 * 文章收藏
	 * @param listModel
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	PageInfo<PCMyDoctorVo> pcCollectArticle(AddressListParam listModel, int pageNo, int limit);
}
